home *** CD-ROM | disk | FTP | other *** search
/ Invisible Universe / Invisible Universe (1995)(Voyager)[Mac-PC].iso / mac / MOVIES / TOC.DIR / 00010_Script_spbx < prev    next >
Text File  |  1995-11-21  |  2KB  |  67 lines

  1. --sets button links to poems
  2. -- 
  3. --property myLabelName, myChannel, myMovieName, hasReading
  4. --global gPoemLabel
  5. --
  6. --on birth me, LN, SP, QT
  7. --  set myLabelName to LN
  8. --  set myChannel to SP
  9. --  set myMovieName to "POETRY"
  10. --  set hasReading to (QT=TRUE)
  11. --  return me
  12. --end birth
  13.  
  14. on spbrollo myChannel, hasReading
  15.   --put ">>>my rollover cast 10 spb ink change"
  16.   
  17. --  puppetSprite myChannel,TRUE
  18. --  set the ink of sprite myChannel to 33
  19. --  set the forecolor of sprite myChannel to 134  
  20. --  
  21. --  puppetSprite myChannel, false
  22.   puppetSprite 14,TRUE
  23.   if hasReading then
  24.     set the castNum of sprite 14 to cast "CPE.PIC"
  25.   else set the castNum of sprite 14 to cast "QDBox"
  26.   updateStage
  27. end
  28.  
  29. on spbpress theLine
  30. --  set myChannel = integer(item 4 of theLine)
  31. --  
  32. --  puppetSprite myChannel,TRUE
  33. --  set the ink of sprite myChannel to 38
  34. --  updateStage
  35. --  puppetSprite myChannel, false
  36. end
  37.  
  38. on spbnorm theLine
  39. --  set myChannel = integer(item 4 of theLine)
  40.   set hasReading = integer(item 6 of theLine)
  41. --  puppetSprite myChannel,TRUE
  42. --  set the ink of sprite myChannel to 36
  43. --  puppetSprite myChannel, false
  44.   if hasReading <> empty then 
  45.     set the castNum of sprite 14 to cast "QDBox"
  46.     puppetSprite 14, false
  47.   end if
  48.   updateStage
  49. end 
  50.  
  51. on spbdoScript theLine
  52.   global gPoemLabel
  53.   
  54.   set myLabelName = item 5 of theLine
  55.   set hasReading = item 6 of theLine
  56.   
  57.   --put ">>>spb poem label: "  & myLabelName
  58.   put myLabelName into gPoemLabel
  59.   
  60.   if hasReading<> empty then 
  61.     set the castNum of sprite 14 to cast "QDBox"
  62.     puppetSprite 14, false
  63.   end if
  64.   
  65.   goGo(myLabelName) 
  66.   -- go movie myMovieName
  67. end